<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Is_default')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->

<!--            <select  id="c-is_default" data-rule="required" class="form-control selectpicker" name="row[is_default]">-->
<!--                {foreach name="isDefaultList" item="vo"}-->
<!--                <option value="{$key}" {in name="key" value="$row.is_default"}selected{/in}>{$vo}</option>-->
<!--                {/foreach}-->
<!--            </select>-->

<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->

<!--            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">-->
<!--                {foreach name="isTypeList" item="vo"}-->
<!--                <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>-->
<!--                {/foreach}-->
<!--            </select>-->

<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">发货区域及运费</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table region-table">
                <thead>
                <tr>
                    <th>发货区域</th>
                    <th>首重(kg)</th>
                    <th>首重价格</th>
                    <th>续重(kg)</th>
                    <th>续重价格</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="fee_data" id="item"}
                <tr>
                    <td><div class='area' data-ids='{$item.city_ids}'>
                        <span>{$item.city_name}</span>
                        <input class="area_ids" name='list[area_ids][]' style='display:none' value='{$item.city_ids}' hidden='hidden' />
                        <input class="area_names" name='list[area_names][]' style='display:none' value='{$item.city_name}' hidden='hidden' />
                    </div>
                    </td>
                    <td width='100px'><input class='form-control' name='list[first][]' value="{$item.first_weight}" /></td>
                    <td width='100px'><input class='form-control' name='list[first_price][]' value="{$item.first_weight_price}" /></td>
                    <td width='100px'><input class='form-control' name='list[rest][]' value="{$item.next_weight}" /></td>
                    <td width='100px'><input class='form-control' name='list[rest_price][]' value="{$item.next_weight_price}" /></td>
                    <td width='60px'><span class="btn btn-danger btn-del btn-sm">删除</span></td>
                </tr>
                {/volist}
                </tbody>
                <tfoot>
                <tr>
                    <td colspan="3">
                        <a class="btn btn-success btn-add-region">+添加运费规则</a>
                    </td>
                </tr>
                </tfoot>
            </table>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


